package com.aaa.service;

import com.aaa.dao.BankNumberDao;
import com.aaa.pojo.BankNumber;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
//银行卡实现类
@Service
public class BankNumberService {
    @Autowired
    private BankNumberDao dao;
    public List<BankNumber> queryBankByUid(Integer uid){
        return  dao.queryBankByUid(uid);
    }

    public List<BankNumber> queryBankNumberAll(Integer uid) {
        return dao.queryBankNumberAll(uid);
    }


    public BankNumber selByBankID(Integer bank_id){
        return dao.selByBankID(bank_id);
    }


    public Boolean updByBankID(Integer bank_id,String bank_card,Integer b_id,Integer tid){
        return dao.updByBankID(bank_card,tid,b_id,bank_id);
    }


    public Boolean delByBankID(Integer bank_id){
        return dao.delByBankID(bank_id);
    }


    public Boolean addBankNumber(String bank_card,Integer b_id,Integer tid,Integer uid){
        return dao.addBankNumber(bank_card,tid,b_id,uid);
    }
    public Boolean addMoneyById(Integer bank_id,Double money){
        return dao.addMoneyById(bank_id,money);
    }
    public Boolean minusMoneyById(Integer bank_id,Double money){
        return dao.minusMoneyById(bank_id,money);
    }
}
